/**
 * @(#)ProcessTakenTaskQueryObject.java 2010-1-18
 *   
 * Copyright  (c) 2009-2010 Wilmar IT Service,  Inc.   
 * All  rights  reserved.   
 * TODO
 */

package com.wilmar.process.entity.query;

import java.util.Arrays;
import java.util.Date;

/**
 * 已接收任务查询对象
 * 
 * @author asus Email:zhoulibo_java@msn.cn
 * @version 1.0.0
 */
public class ProcessTakenTaskQueryObject extends QueryObject {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 1L;

	private String[] taskName;
	private Date minStartTime;
	private Date maxStartTime;
	private String[] processInstanceId;
	private String[] processInstanceKey;
	private String[] processDefinitionName;
	private String[] processDefinitionKey;
	private String[] processDefinitionId;

	public void setTaskName(String taskName) {
		this.taskName = new String[] { taskName };
	}

	public void setProcessDefinitionId(String processDefinitionId) {
		this.processDefinitionId = new String[] { processDefinitionId };
	}

	public void setProcessDefinitionKey(String processDefinitionKey) {
		this.processDefinitionKey = new String[] { processDefinitionKey };
	}

	public void setProcessDefinitionName(String processDefinitionName) {
		this.processDefinitionName = new String[] { processDefinitionName };
	}

	public void setProcessInstanceKey(String processInstanceKey) {
		this.processInstanceKey = new String[] { processInstanceKey };
	}

	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = new String[] { processInstanceId };
	}

	/**
	 * @return the taskName
	 */
	public String[] getTaskName() {
		return taskName;
	}

	/**
	 * @param taskName
	 *            the taskName to set
	 */
	public void setTaskName(String[] taskName) {
		this.taskName = taskName;
	}

	/**
	 * @return the minStartTime
	 */
	public Date getMinStartTime() {
		return minStartTime;
	}

	/**
	 * @param minStartTime
	 *            the minStartTime to set
	 */
	public void setMinStartTime(Date minStartTime) {
		this.minStartTime = minStartTime;
	}

	/**
	 * @return the maxStartTime
	 */
	public Date getMaxStartTime() {
		return maxStartTime;
	}

	/**
	 * @param maxStartTime
	 *            the maxStartTime to set
	 */
	public void setMaxStartTime(Date maxStartTime) {
		this.maxStartTime = maxStartTime;
	}

	/**
	 * @return the processInstanceId
	 */
	public String[] getProcessInstanceId() {
		return processInstanceId;
	}

	/**
	 * @param processInstanceId
	 *            the processInstanceId to set
	 */
	public void setProcessInstanceId(String[] processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	/**
	 * @return the processInstanceKey
	 */
	public String[] getProcessInstanceKey() {
		return processInstanceKey;
	}

	/**
	 * @param processInstanceKey
	 *            the processInstanceKey to set
	 */
	public void setProcessInstanceKey(String[] processInstanceKey) {
		this.processInstanceKey = processInstanceKey;
	}

	/**
	 * @return the processDefinitionName
	 */
	public String[] getProcessDefinitionName() {
		return processDefinitionName;
	}

	/**
	 * @param processDefinitionName
	 *            the processDefinitionName to set
	 */
	public void setProcessDefinitionName(String[] processDefinitionName) {
		this.processDefinitionName = processDefinitionName;
	}

	/**
	 * @return the processDefinitionKey
	 */
	public String[] getProcessDefinitionKey() {
		return processDefinitionKey;
	}

	/**
	 * @param processDefinitionKey
	 *            the processDefinitionKey to set
	 */
	public void setProcessDefinitionKey(String[] processDefinitionKey) {
		this.processDefinitionKey = processDefinitionKey;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return "ProcessTakenTaskQueryObject [maxStartTime=" + maxStartTime
				+ ", minStartTime=" + minStartTime + ", processDefinitionId="
				+ Arrays.toString(processDefinitionId)
				+ ", processDefinitionKey="
				+ Arrays.toString(processDefinitionKey)
				+ ", processDefinitionName="
				+ Arrays.toString(processDefinitionName)
				+ ", processInstanceId=" + Arrays.toString(processInstanceId)
				+ ", processInstanceKey=" + Arrays.toString(processInstanceKey)
				+ ", taskName=" + Arrays.toString(taskName) + "]";
	}

	/**
	 * @return the processDefinitionId
	 */
	public String[] getProcessDefinitionId() {
		return processDefinitionId;
	}

	/**
	 * @param processDefinitionId
	 *            the processDefinitionId to set
	 */
	public void setProcessDefinitionId(String[] processDefinitionId) {
		this.processDefinitionId = processDefinitionId;
	}

}
